package inet.db.tennis;

import java.math.BigDecimal;
import java.sql.Timestamp;

public class TennisChampion implements Comparable{
	private BigDecimal id;
	private String code;
	private String name;
	private BigDecimal cateId;
	private int courtType; // loại sân: 0 = Hand, 1 = Clay, 2 = Grass, 3 = Omni, 4 = Carpet
	private int point;
	private String bonusMoney;
	private BigDecimal countryId;
	private BigDecimal currentPhase;
	private String currentRound;
	private BigDecimal currentSeason;
	private int totalSet;
	private int status; // 0 = sắp diễn ra, 1 = Đang diễn ra, 2 = Đã kết thúc, 3 = Giải đấu không đươc sử dụng nữa.
	private String countryName;
	private Timestamp lastUpdated;
	private int level;
	private int hasBracket; // giai dau co luu do hay khong
	private String codeSMS;
	
	//Dung de sap xep Vector cac object Champion
    //Collections.sort(Vector e);
    public int compareTo(Object champion) {
        TennisChampion e = (TennisChampion) champion;

        if (this.getLevel() > e.getLevel()) return 1;
        else if (this.getLevel() < e.getLevel()) return -1;
        else return this.getName().compareToIgnoreCase(e.getName());
    }
	
	public BigDecimal getId() {
		return id;
	}
	public void setId(BigDecimal id) {
		this.id = id;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public BigDecimal getCateId() {
		return cateId;
	}
	public void setCateId(BigDecimal cateId) {
		this.cateId = cateId;
	}
	public int getCourtType() {
		return courtType;
	}
	public void setCourtType(int courtType) {
		this.courtType = courtType;
	}
	public int getPoint() {
		return point;
	}
	public void setPoint(int point) {
		this.point = point;
	}
	public String getBonusMoney() {
		return bonusMoney;
	}
	public void setBonusMoney(String bonusMoney) {
		this.bonusMoney = bonusMoney;
	}
	public BigDecimal getCountryId() {
		return countryId;
	}
	public void setCountryId(BigDecimal countryId) {
		this.countryId = countryId;
	}
	public BigDecimal getCurrentPhase() {
		return currentPhase;
	}
	public void setCurrentPhase(BigDecimal currentPhase) {
		this.currentPhase = currentPhase;
	}
	public String getCurrentRound() {
		return currentRound;
	}
	public void setCurrentRound(String currentRound) {
		this.currentRound = currentRound;
	}
	public BigDecimal getCurrentSeason() {
		return currentSeason;
	}
	public void setCurrentSeason(BigDecimal currentSeason) {
		this.currentSeason = currentSeason;
	}
	public int getTotalSet() {
		return totalSet;
	}
	public void setTotalSet(int totalSet) {
		this.totalSet = totalSet;
	}
	public Timestamp getLastUpdated() {
		return lastUpdated;
	}
	public void setLastUpdated(Timestamp lastUpdated) {
		this.lastUpdated = lastUpdated;
	}
	public String getCountryName() {
		return countryName;
	}
	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getHasBracket() {
		return hasBracket;
	}

	public void setHasBracket(int hasBracket) {
		this.hasBracket = hasBracket;
	}

	public String getCodeSMS() {
		return codeSMS;
	}

	public void setCodeSMS(String codeSMS) {
		this.codeSMS = codeSMS;
	}
	
}
